package com.puffer.dao.croe.interfaces;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import com.puffer.core.domain.Menu;
import com.puffer.core.domain.Navigation;

public  interface PlatformMenu extends Repository<Menu,String>{
	public Menu findById(String id);
	
	@Query("from Menu where parentid is null or parentid ='' order by menucode asc")
	public List<Navigation> findFirstMenu();
	
	public List<Menu> getByParentid(String parentId);
}
